#include "gui/util/ReusableScreenPortion.h"

namespace gui {

ReusableScreenPortion::ReusableScreenPortion() {
	this->origin.x = 0;
	this->origin.y = 0;
	this->origin.h = 0;
	this->origin.w = 0;
	this->destination.x = 0;
	this->destination.y = 0;
	this->destination.h = 0;
	this->destination.w = 0;
}

ReusableScreenPortion::ReusableScreenPortion(Portion origin, Portion dest) {
	this->origin = origin;
	this->destination = dest;
}

ReusableScreenPortion::~ReusableScreenPortion() {

}

Portion ReusableScreenPortion::getOriginPortion() {
	return this->origin;
}

Portion ReusableScreenPortion::getDestinationPortion() {
	return this->destination;
}

bool ReusableScreenPortion::isEmpty() {
	return (this->origin.h == 0 && this->origin.w == 0 && this->destination.h
			== 0 && this->destination.w == 0);
}

}
